The standard Visual Basic text box control is a very basic text box. Normally, if you want multiple fonts, multiple tabs, multiple styles, or overstrike AND insert mode, you'd have to go commercial. This is a demonstration of how you can implement both overstrike and insert mode. It was written by Daniel Trimble and is placed in the Public Domain. Do as you wish with this demo, but I, nor the distributers of this product (namely online services, vendors, or anyone else having anything to do with the distribution or reproduction of this demo) are at fault for anything. Comments and questions and suggestions are always welcome, and can be emailed to the address DGTrimble@IFiveBBS@win.net. or to EFVE25D@prodigy.com.
MS Sans Serif
txt_TextBoxPlus_Change
txt_TextBoxPlus_KeyPress
KeyAscii
txt_TextBoxPlus
SelLength
InsertMode
lbl_IOMode
Caption
txt_TextBoxPlus_KeyUp
KeyCode
Shift
KEY_TAB
KEY_INSERTs
mdi_TextPad
StatusBar
InsertStatus
txt_ActiveDocument
@ Form_Load
screen
Width
Height
txt_txt_TextBoxPlus
Form_Load
make Insert active on startupi
centers the demo window on the screen
txt_TextBoxPlus_KeyPress
txt_TextBoxPlus_KeyUp
Insert pressed?I
was Insert active?
yes, so make it inactive. Now we're in overstrike modee